package com.china08.yxyapi.entity.db.lessons;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 保存临时文件的表 如果用户只上传了视频 之后就离开了 存到这个表里
 * 
 * @author Json
 *
 */
@Entity
@Table(name = "yxy_lessons_temp", catalog = "yxy_lessons")
public class YxyLessonsTemp extends BaseEntity {

    private static final long serialVersionUID = -4647562921486387032L;

    @Column(name = "md5", nullable = false, length = 128)
    private String md5;

    @Column(nullable = false)
    private String location;

    @Column(nullable = false)
    private Integer chunk;

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getChunk() {
        return chunk;
    }

    public void setChunk(Integer chunk) {
        this.chunk = chunk;
    }
}
